package 工厂模式;

public class FactoryPatternDemo {

    public static void main(String[] args) {
        ShapeFactory shapeFactory = new ShapeFactory();
        Circle circle = (Circle) shapeFactory.getShape("Circle");

        Shape shape = shapeFactory.getShape("Circle");
        circle.draw();
        shape.draw();
    }
}
